import java.util.Scanner;
public class compare{
    public static void main(String[] args){
        try(Scanner sc = new Scanner(System.in)){
            
            System.out.println("请输入第一个长方体的长：");
            double length1 = sc.nextDouble();

            System.out.println("请输入第一个长方体的宽：");
            double width1 = sc.nextDouble();

            double area1 = area(length1 , width1);

            System.out.println("请输入第二个长方体的长：");
            double length2 = sc.nextDouble();

            System.out.println("请输入第二个长方体的宽：");
            double width2 = sc.nextDouble();

            double area2 = area(length2 , width2);

            Compare(area1 , area2);
        }
    }
    public static double area(double length , double width){
        double result = length * width;
        return result;
    }
    public static void Compare(double num1 ,double num2){
        if(num1 > num2){
            System.out.println("第一个长方体面积更大");
        }else{
            System.out.println("第二个长方体面积更大");
        }
    }
}